package zytrade.service.mobile.dao;

import zytrade.service.mobile.entity.TerminalPrivilegesDO;


import java.util.List;
import java.util.Map;
/**
 * @Author: Wu
 * @Description: 终端功能清单dao接口
 * @Date: Create in 10:30 2017/11/14
 * @Modified By:
 */
public interface TerminalPrivilegesMapper {

    /**
     * @Author: Wu
     * @Description:根据id删除
     * @Date:Create in 10:30 2017/11/20
     */
    public  int deleteByPrimaryKey(Long id);

    /**
     * @Author: Wu
     * @Description:插入实体自动生成主键
     * @Date:Create in 10:30 2017/11/20
     */
    public int insert(TerminalPrivilegesDO record);

     /**
      * @Author: Wu
      * @Description:选择插入实体须先查询主键
      * @Date: Create in 10:30 2017/11/20
      */
    public int insertSelective(TerminalPrivilegesDO record);

    /**
     * @Author: Wu
     * @Description:根据id查询实体
     * @Date:  Create in 10:30 2017/11/20
     */
    public TerminalPrivilegesDO selectByPrimaryKey(Long id);

    /**
     * @Author: Wu
     * @Description:根据id更新实体(选择性更新)
     * @Date:  Create in 10:30 2017/11/20
     */
    public int updateByPrimaryKeySelective(TerminalPrivilegesDO record);

    /**
     * @Author: Wu
     * @Description:根据id更新实体（全部字段更新）
     * @Date:
     */
    public int updateByPrimaryKey(TerminalPrivilegesDO record);

    /**
     * @Author: Wu
     * @Description:查询entity列表
     * @Date: Create in 15:31 2017/11/9
     */
    public List<TerminalPrivilegesDO> searchEntityList(TerminalPrivilegesDO terminalPrivileges) ;

    /**
     * @Author: Wu
     * @Description:删除功能
     * @Date: Create in 15:31 2017/11/14
     */
    public int deleteByUpdate(TerminalPrivilegesDO terminalPrivileges) ;

    /**
     * @Author: Wu
     * @Description:根据功能Key查询功能
     * @Date: Create in 15:31 2017/11/14
     */
    public TerminalPrivilegesDO searchPrivilegesByFunctionKey(String functionKey) ;

    /**
     * @Author: Wu
     * @Description:批量更新功能
     * @Date: Create in 15:31 2017/11/14
     */
    public int updateStatus(Map<String ,Object> map) ;

    /**
     * @Author: Wu
     * @Description:批量删除功能
     * @Date: Create in 15:31 2017/11/14
     */
    public int deleteEntities(String ids);

}